* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    height: 100vh;
    width: 100vw;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.text-item {
    position: absolute;
    transition: all 0.5s ease;
    cursor: pointer;
    user-select: none;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.text-item:hover {
    transform: scale(1.2);
    z-index: 100;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 输入按钮样式 */
.input-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #ff4081;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.input-button span {
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.input-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* 输入表单样式 */
.input-form {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 300px;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

.input-form.active {
    transform: scale(1);
    opacity: 1;
}

.form-content h3 {
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.form-content input,
.form-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: #2d2d2d;
    color: white;
    font-size: 14px;
}

.form-content textarea {
    height: 100px;
    resize: none;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
}

.form-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

#cancelButton {
    background-color: #424242;
    color: white;
}

#submitButton {
    background-color: #ff4081;
    color: white;
}

.form-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 新添加文字的动画效果 */
.text-item.new-text {
    animation: addNewText 1s ease-out;
}

@keyframes addNewText {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}